import Mock from "mockjs";
const url = {
  // 自定义 axios 请求的地址
  login: "/api/login",
  menu: "/api/menu",
};
export default [
  Mock.mock(url.login, {
    // 
    "data|1": [
      {
        // 1-100任意数值
        "id|1-100": 100,
        // 
        "pwd|1":[123] ,
        // 名称
        "userName|1": ["张三", "李四", "王五"],
        // 
        'token':'@guid'
      },
    ],
  }),
  Mock.mock(url.menu, {
    // 从属性值中随机选取5个属性
    "data|1": [
      {
        "menuList":[
          {path:'/menu1',menuName:'菜单1',address:'../views/menu1.vue'},
        {path:'/menu2',menuName:'菜单2',address:'../views/menu2.vue'},
        //{path:'/menu3',menuName:'菜单3',address:'../views/menu3.vue'}
      ]

      },
    ],
  }),
];